package models

import (
	"time"
)

func (a *Files) TableName() string {
	return "files"
}

//Files实体类,保存用户上传的文件
type Files struct{
	Id          uint
	AdminUserId uint `orm:"default(0)"description:"管理员ID"`
	MemberId uint `orm:"default(0)"description:"用户ID"`
	FilePath    string    `orm:"size(128)"description:"文件的相对路径"`
	Type         uint8     `orm:"default(0)"description:"图片场景1=管理员头像"`
	Remark string `orm:"null;size(255)"description:"备注"`
	CreatedAt time.Time `orm:"auto_now_add;type(datetime)"description:"创建时间"`
}